package com.shangxia.dog.commom.enums;

/**
 * @author zhouya24
 * @date 2021/11/18 15:26
 * @apiNote 返回状态类枚举
 */

public enum ResultEnum {
    /**
     *
     */
    SUCCESS(200, "成功"),
    ERROR(500, "错误");

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
